<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let a = {
            name: "a",
            b: {
                name: "b",
                fn() {
                    let that = this;
                    // console.log(this.name);
                    // console.log(that.name);
                    function b() {
                        console.log(that);
                        console.log(this);
                    }
                    return b;
                },
                work(){
                    let c = function(){
                        
                    }
                }
            }
        }
        let c = a.b.fn();
        c(); 
    </script>
</body>

</html>